package com.lh.pro.rpc;

import com.sise.bean.DeleteDTO;
import com.sise.service.ValidationParamter;
import com.sise.service.ValidationService;
import org.springframework.stereotype.Service;

/**
 * 作者：idea
 * 日期：2018/8/26
 * 描述：
 */
@Service("validationService")
public class ValidationServiceImpl implements ValidationService {
    public void save(ValidationParamter paramter) {
        System.out.println(paramter);
        System.out.println("save successfully");
    }

    public void update(ValidationParamter paramter) {
        System.out.println(paramter);
        System.out.println("update successfully");
    }

    public DeleteDTO delete(long id) {
        System.out.println(id);
        System.out.println("delete successfully");
        DeleteDTO deleteDTO=new DeleteDTO();
        deleteDTO.setId((int) id);
        return deleteDTO;
    }
}
